package com.cqc.jdk8.Jtime;

import org.junit.Test;

import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;

public class ZonedDateTimeTest {

    @Test
    public void f1() {
        ZonedDateTime zonedDateTime = ZonedDateTime.now();
        String format = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss").format(zonedDateTime);
        System.out.println(format);
    }
}
